package com.invengo.module_check.ui.fragment.widget.item;

import androidx.annotation.NonNull;

import com.invengo.library_db.entity.module_check.ColumBean;
import com.invengo.module_check.ui.fragment.widget.SelectShelfViewModel;

import me.goldze.mvvmhabit.base.ItemViewModel;
import me.goldze.mvvmhabit.binding.command.BindingCommand;
import me.goldze.mvvmhabit.bus.event.SingleLiveEvent;

public class RowItemViewModel extends ItemViewModel<SelectShelfViewModel> {
    public SingleLiveEvent<ColumBean> bean =new SingleLiveEvent<>();
    public RowItemViewModel(@NonNull SelectShelfViewModel viewModel, ColumBean bean) {
        super(viewModel);
        this.bean.postValue(bean);
    }

    public BindingCommand onRowClick =new BindingCommand(()->{
        viewModel.rowItemClick(this);
    });
}
